home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #10 / Software USA Volume 4.10.iso / pc / educate / mmlogi / install / data.z / Robot3.lgi < prev    next >
Text File  |  1997-01-01  |  4KB  |  196 lines

  1. 41 1 2
  2. 38 1
  3. 19 -375 -9 -316 -28 1
  4. D1
  5. 19 -375 15 -316 -4 1
  6. D0
  7. 19 -375 38 -316 19 1
  8. Clock
  9. 20 -182 15 -123 -4 1
  10. Color
  11. 26 -314 -88 64 -290 0 ..\bitmaps\Road.bmp 1
  12. 22 -189 -53 42 -73 0 \NUL
  13. See page 2 for the brains of the car
  14. 43 -249 21 -200 -77 0 5 50 50 0 25 25 ..\Bitmaps\Car0.bmp
  15. 22 -189 -34 38 -54 0 \NUL
  16. See page 3 for the "state diagram"
  17. 8 -374 -29 -325 -78 0 0
  18. 22 -373 -76 -329 -96 0 \NUL
  19. Lights
  20. 1 -319 5 -248 5
  21. 1 -319 -19 -248 -1
  22. 1 -319 5 -248 -13
  23. 1 -319 -19 -248 -19
  24. 1 -319 28 -248 17
  25. 1 -203 5 -181 5
  26. 1 -328 -54 -248 -25
  27. 38 2
  28. 6 -388 -109 -339 -158 1 3
  29. 28 -123 173 -74 58 1 robot_lo.txt
  30. 28 -122 47 -73 -68 1 robot_hi.txt
  31. 31 51 -134 100 -219 0 2
  32. 31 50 -41 99 -126 0 2
  33. 31 49 49 98 -36 0 2
  34. 31 48 137 97 52 0 2
  35. 10 160 -171 177 -188 2 0
  36. 10 168 -78 185 -95 2 0
  37. 10 177 12 194 -5 2 0
  38. 10 185 100 202 83 2 0
  39. 10 -185 34 -168 17 0 0
  40. 10 -168 52 -151 35 0 0
  41. 10 -179 40 -162 23 0 0
  42. 10 -174 46 -157 29 0 0
  43. 10 160 -233 177 -250 0 0
  44. 10 168 -239 185 -256 0 0
  45. 10 177 -246 194 -263 0 0
  46. 10 185 -253 202 -270 0 0
  47. 10 -185 -233 -168 -250 0 0
  48. 10 -168 -253 -151 -270 0 0
  49. 10 -174 -246 -157 -263 0 0
  50. 10 -180 -239 -163 -256 0 0
  51. 10 -185 160 -168 143 0 0
  52. 10 -179 166 -162 149 0 0
  53. 10 -174 172 -157 155 0 0
  54. 10 -168 178 -151 161 0 0
  55. 10 -64 106 -47 89 0 0
  56. 10 -72 112 -55 95 0 0
  57. 10 -64 224 -47 207 0 0
  58. 10 -72 217 -55 200 0 0
  59. 10 -323 217 -306 200 0 0
  60. 10 -335 224 -318 207 0 0
  61. 10 -334 -172 -317 -189 0 0
  62. 10 -323 -149 -306 -166 0 0
  63. 14 -33 158 16 109
  64. 10 -84 -137 -67 -154 0 0
  65. 24 115 -140 164 -189 1 1
  66. 24 115 -47 164 -96 1 1
  67. 24 115 43 164 -6 1 1
  68. 24 114 131 163 82 1 1
  69. 5 -310 263 -261 214 1
  70. 10 34 247 51 230 0 0
  71. 7 -77 -196 -28 -245 0 1
  72. 5 -254 263 -205 214 1
  73. 9 -77 -155 -28 -204 1000 20
  74. 19 -242 -136 -183 -155 1000
  75. Color
  76. 20 -306 -171 -247 -190 1000
  77. D1
  78. 20 -306 -148 -247 -167 1000
  79. D0
  80. 20 -306 -124 -247 -143 1000
  81. Clock
  82. 22 -390 -274 -30 -294 0 \NUL
  83. This is a state machine to give the commands to follow
  84. 22 -390 -255 -186 -275 0 \NUL
  85. a black line on a white surface.
  86. 22 -299 -33 -182 -53 0 \NUL
  87. There is a simple
  88. 22 -299 -14 -201 -34 0 \NUL
  89. program in the
  90. 22 -390 -225 -184 -245 0 \NUL
  91. Page 3 has the "state diagram"
  92. 22 -299 5 -234 -15 0 \NUL
  93. memorys
  94. 22 -39 181 88 161 0 \NUL
  95. The muxes choose
  96. 22 -39 200 106 180 0 \NUL
  97. 1 of 2 next addresses
  98. 22 -39 219 97 199 0 \NUL
  99. based on color seen
  100. 1 -76 -23 49 97
  101. 1 -76 -29 50 9
  102. 1 -76 -35 51 -81
  103. 1 -76 -41 52 -174
  104. 1 -76 -47 49 91
  105. 1 -76 -53 50 3
  106. 1 -76 -59 51 -87
  107. 1 -76 -65 52 -180
  108. 1 169 -180 168 -242
  109. 1 169 -242 -177 -242
  110. 1 -176 -242 -177 25
  111. 1 -176 25 -121 25
  112. 1 177 -87 176 -248
  113. 1 177 -248 -172 -248
  114. 1 -171 -248 -171 31
  115. 1 -170 31 -121 31
  116. 1 186 3 185 -255
  117. 1 186 -255 -166 -255
  118. 1 -165 -255 -166 37
  119. 1 -165 37 -121 37
  120. 1 194 91 193 -262
  121. 1 194 -262 -160 -262
  122. 1 -159 -262 -160 43
  123. 1 -159 43 -121 43
  124. 1 -176 25 -177 151
  125. 1 -170 31 -171 157
  126. 1 -165 37 -166 163
  127. 1 -159 43 -160 169
  128. 1 -159 169 -122 169
  129. 1 -165 163 -122 163
  130. 1 -170 157 -122 157
  131. 1 -176 151 -122 151
  132. 1 -77 97 -56 97
  133. 1 -77 103 -64 103
  134. 1 -63 103 -64 208
  135. 1 -55 97 -56 215
  136. 1 -63 208 -315 208
  137. 1 -55 215 -327 215
  138. 1 -326 215 -326 -181
  139. 1 -314 208 -315 -158
  140. 1 49 133 13 133
  141. 1 50 45 13 133
  142. 1 51 -45 13 133
  143. 1 52 -138 13 133
  144. 1 -75 -146 52 -150
  145. 1 -75 -146 51 -57
  146. 1 -75 -146 50 33
  147. 1 -75 -146 49 121
  148. 1 97 -180 116 -180
  149. 1 161 -180 168 -180
  150. 1 94 91 115 91
  151. 1 160 91 193 91
  152. 1 95 3 116 3
  153. 1 96 -87 116 -87
  154. 1 161 -87 176 -87
  155. 1 161 3 185 3
  156. 1 -342 -134 -309 238
  157. 1 43 238 115 109
  158. 1 43 238 116 21
  159. 1 43 238 116 -69
  160. 1 43 238 116 -162
  161. 1 -75 -146 -76 -221
  162. 1 -264 238 -253 238
  163. 1 -208 238 42 238
  164. 1 -75 -146 -76 -180
  165. 1 -325 -181 -305 -181
  166. 1 -314 -158 -305 -158
  167. 1 -342 -134 -305 -134
  168. 1 -186 -146 -76 -146
  169. 38 3
  170. 26 -389 -27 119 -292 0 state.bmp 0
  171. 22 -389 -2 -2 -22 0 \NUL
  172. "ok" means car is on black, "fail" means car is not on black
  173. 22 -389 17 186 -3 0 \NUL
  174. Each state is assigned a unique binary number which represents an address in memory
  175. 22 -389 55 103 35 0 \NUL
  176. The main purpose of the circuit is to simply choose the next address (state)
  177. 22 -389 36 -24 16 0 \NUL
  178. The "backup" states unconditionally go to the next state
  179. 22 -389 74 78 54 0 \NUL
  180. This problem became extremely simply once a state diagram was used
  181. 22 -389 93 16 73 0 \NUL
  182. As you can see a bitmap can be used as a documentation tool
  183. 39 16777215
  184. 47 1
  185. 40 0 20 200
  186. 30
  187. System
  188. 16
  189. 700
  190. 0
  191. 0
  192. 1
  193. 2
  194. 2
  195. 34
  196.